#!/usr/bin/env bash

mvn package

docker build -t 127.0.0.1:9081/docker/notebook-k8s/discovery-service:latest .

docker push 127.0.0.1:9081/docker/notebook-k8s/discovery-service:latest

#使用宿主机的ip 因为在k8s环境中不好使用localhost
docker build -t 192.168.31.35:9081/docker/notebook-k8s/discovery-service:latest .

docker push 192.168.31.35:9081/docker/notebook-k8s/discovery-service:latest

docker pull 192.168.31.35:9081/docker/notebook-k8s/discovery-service:latest



##使用阿里云

docker build -t registry.cn-hangzhou.aliyuncs.com/smf-dev/dev:1.0.0 .

docker push registry.cn-hangzhou.aliyuncs.com/smf-dev/dev:1.0.0


